/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.dusin.array.util;

/**
 *
 * @author Admin
 */
public class ArrayUtil {
    /**
     * 数组逆置
     * @param bs 
     */
    public static void reverse(byte[] bs){
        for(int i=0,j=bs.length-1;i<j;i++,j--){
            byte t = bs[i];
            bs[i]=bs[j];
            bs[j]=t;
        }
            
    }
}
